package org.meal.repository;

import cn.meal.entity.Menu;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuRepository extends MongoRepository<Menu,String> {

    /**
     *
     * @param storeId
     * @param parentId
     * @return
     */
    List<Menu> getMenuByIdAndParentId(Integer storeId, Integer parentId);

    Menu getMenuById(Integer parentId);
}
